package export_data

import scala.io.Source

/**
  * Created by lzd on 2019/2/26.
  */
object TableCompare {
  def main(args: Array[String]): Unit = {
    val lines: Iterator[String] = Source.fromFile("C:\\Users\\lzd\\Desktop\\3.txt").getLines()
//
//    val iterator: Iterator[String] = lines.flatMap(_.split(","))
//
//    iterator.foreach(println(_))

    val lines_old: Iterator[String] = Source.fromFile("C:\\Users\\lzd\\Desktop\\3_old.txt").getLines()

//    lines_old.map(_.split("\\(|（")(0)).foreach(println(_))

    val intersect: List[String] = lines_old.toList.diff(lines.toList)
    intersect.foreach(println(_))
  }
}
